import request from '@/utils/request'

// 查询维修记录查询列表
export function listRepairQuery(query) {
  return request({
    url: '/repair/repairQuery/list',
    method: 'get',
    params: query
  })
}

// 查询维修记录查询列表
export function listRepairQuery1(query) {
  return request({
    url: '/repair/repairQuery/list1',
    method: 'get',
    params: query
  })
}

// 查询维修记录查询详细
export function getRepairQuery(checkId) {
  return request({
    url: '/repair/repairQuery/' + checkId,
    method: 'get'
  })
}

// 获取小区信息
export function getAreaInfo() {
  return request({
    url: '/house/area/list1',
    method: 'get'
  })
}
// 获取小区信息
export function updateBalance() {
  return request({
    url: '/repair/repairQuery/updateBalnce',
    method: 'get'
  })
}
// 获取小区信息
export function getAreaInfo1(areaName) {
  return request({
    url: '/house/area/list2/'+areaName,
    method: 'get'
  })
}

// 获取楼宇信息
export function getGroupInfo(areaName) {
  return request({
    url: '/house/group/getGroupInfo/'+areaName,
    method: 'get'
  })
}

// 修改户管理
export function updateDoor(areaName,groupName,unitName,doorId) {
  return request({
    url: '/house/door/update/'+areaName+"/"+groupName+"/"+unitName+"/"+doorId,
    method: 'get'
  })
}

// 获取单元信息
export function getUnitInfo(areaName,groupName) {
  return request({
    url: '/house/unit/getUnitInfo/'+areaName+"/"+groupName,
    method: 'get'
  })
}


